function getUrlVar(key){
	var value = "";
	var sURL = w.location.href;
	if (sURL.indexOf("?") > 0){
		var arrayParams = sURL.split("?");
		var arrayURLParams = arrayParams[1].split("&");
		for (var i = 0; i < arrayURLParams.length; i++){
			var sParam =  arrayURLParams[i].split("=");
			if ((sParam[0] == key) && (sParam[1] != "")){
				value = sParam[1];
				break;
			}
		}
	}
	return value;
}